//@ sourceURL=ReviewView.js
Ext.ns("ReviewView");
ReviewView = Ext.extend(Ext.Panel, {
    constructor : function(a) {
        Ext.applyIf(this, a);
        var all=this.initUIComponents();
        ReviewView.superclass.constructor.call(this, {
            id : "ReviewView",
            title : "评审",
            region : "center",
            layout : "border",
            border : false,
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel]
        });
    },
    initUIComponents : function() {
        var GridComponents=new creategridview({
            topbar : {
                inputFormName : 'ReviewForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "评审人"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_reviewPerson_S_LK",
                    maxLength : 256
                } ]
            },
            grid : {
                title : "评审列表",
                rowActions:true,
                listUrl : __ctxPath + "/health/listReview.do?Q_riskFactorsNo_L_EQ="+this.riskFactorsNo,
                removeUrl : __ctxPath + "/health/deleteReview.do",
                fields : [ "id", 'years', 'reviewPerson','reviewDate', "reviewContent", "reviewConclusion"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                }, {
                    header : "年份",
                    dataIndex : "years",
                    hidden : true,
                    sortable : true
                },{
                    header : "评审人",
                    dataIndex : "reviewPerson",
                    width : 70
                },{
                    header : "评审时间",
                    dataIndex : "reviewDate",
                    width : 80
                },{
                    header : "评审内容",
                    dataIndex : "reviewContent",
                    width : 70
                },{
                    header : "评审结论",
                    dataIndex : "reviewConclusion",
                    width : 70
                }
            ]
            },
            formCfg : {
                riskFactorsNo : this.riskFactorsNo
            }/*,
            tree : {
                treeUrl : __ctxPath + "/health/treeLoadReview.do"
            }*/
            
        });
        return GridComponents;
    }
});

